﻿using System.Web.Http;
using Sportsbook.Domain.Models.Menus;
using Sportsbook.Domain.Repositories;

namespace Sportsbook.RestAPI.Controllers
{
    public class MenuController : ApiController
    {
        private readonly IMenusRepository repository;

        public MenuController(IMenusRepository repository)
        {
            this.repository = repository;
        }

        public IMenu Get()
        {
            var model = repository.Get("cesarbmx");
            return model;
        }
    }
}
